<?php
use_helper('I18N');
?>
<style>
    .login-form {
        float: right;
        text-align: left;
        width: 300px;
    }
    .login-text {
        float: left;
        text-align: left;
        width: 180px;
    }
    .login {
        background: none repeat scroll 0 0 #F1F3F5;
        border: 1px solid #CCCCCC;
        font-size: 11px;
        margin: 6em auto 2em;
        padding: 15px;
        width: 611px;
    }
</style>
<div id="ctr" align="center">
    <br/>
    <br/>
    
    <div class="login">
        
        <div class="login-form">
            <form action="<?php echo url_for(sfAdminDash::getProperty('login_route', '@sf_guard_signin')); ?>" method="post">
                <div class="form-block">
                    <?php echo $form->renderGlobalErrors(); ?>
                    <?php if (isset($form['_csrf_token'])): ?>
                        <?php echo $form['_csrf_token']->render(); ?> 
                    <?php endif; ?>
                    <div class="inputlabel"><?php echo $form['username']->renderLabel(__('Username', array(), 'sf_admin_dash')); ?>:</div>
                    <div>
                        <?php echo $form['username']->renderError(); ?>
                        <?php echo $form['username']->render(array('class' => 'inputbox')); ?>
                    </div>
                    <div class="inputlabel"><?php echo $form['password']->renderLabel(__('Password', array(), 'sf_admin_dash')); ?>:</div>
                    <div>
                        <?php echo $form['password']->renderError(); ?>
                        <?php echo $form['password']->render(array('class' => 'inputbox')); ?>
                    </div>
                    <div class="inputlabel">
                        <?php echo $form['remember']->renderLabel(__('Remember?', array(), 'sf_admin_dash')); ?>
                        <?php echo $form['remember']->render(array('class' => 'inputcheck')); ?>
                    </div>
                    <div align="left"><input type="submit" name="submit" class="button clr" value="<?php echo __('Login', array(), 'sf_admin_dash'); ?>" /></div>
                </div>
            </form>
        </div>
        <img style="float:left" src="<?php echo image_path('top_logo_transparent.png', true) ?>"/>
        <div class="login-text">
            <div class="ctr">
                <img alt="Security" src="<?php echo image_path(sfAdminDash::getProperty('web_dir', '/sfAdminDashPlugin') . '/images/key.png'); ?>" />
            </div>
            <p><?php echo __('Welcome to', array(), 'sf_admin_dash'); ?> <?php echo sfAdminDash::getProperty('site'); ?></p>
            <p><?php echo __('Use a valid username and password to gain access to the administration console.', array(), 'sf_admin_dash'); ?></p>
        </div>

        <div class="clr"></div>
    </div>
</div>
